import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

import path from 'path'
//引入插件(未使用)
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
  ],
  resolve:{
    //配置路径别名
    alias: {
      '@': path.resolve(__dirname, './src'),
    }
  },
  server:{
    //配置代理
    proxy:{
      "/api":"http://testapi.xuexiluxian.cn"
    }
  }
})
